package com.icefish.daoFactory;

import com.icefish.bean.Comment;
import com.icefish.dao.*;
import com.icefish.daoImpl.CommentDaoImpl;
import com.icefish.daoImpl.GoodDaoImpl;
import com.icefish.daoImpl.Shopping_cartDaoImpl;
import com.icefish.daoImpl.UserDaoImpl;
import com.icefish.daoImpl.OrderDaoImpl;

/**
 * Description: dao工厂，返回 操作相关表数据 接口 的 实现类 的对象实例
 * Date: 2022/12/1 12:10
 * Author: 26480
 *
 * @since JDK 1.8
 */
public class DaoFactory {
    public static CommentDao getCommentDaoInstance () {
         return new CommentDaoImpl();
    }

    public static GoodDao getGoodDaoInstance () {
        return new GoodDaoImpl();

    }

    public static OrderDao getOrderDaoInstance () {
        return new OrderDaoImpl();

    }

    public static Shopping_cartDao getShopping_cartDaoInstance () {
        return new Shopping_cartDaoImpl();

    }

    public static UserDao getUserDaoInstance () {
        return new UserDaoImpl();
    }
}
